package com.csun.cmny.provider.service;

import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OpcFlowMessageWay;
import com.csun.cmny.provider.model.vo.message.MessageWayVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-07 10:51
 * @Description:
 */
public interface OpcFlowMessageWayService extends IService<OpcFlowMessageWay> {

    /**
     * 给推送消息模板指定推送方式
     *
     * @param opcFlowMessageWay the opc flow message way
     *
     * @return  the int.
     */
    Integer bind(OpcFlowMessageWay opcFlowMessageWay);

    /**
     * 给推送消息模板删除推送方式
     *
     * @param opcFlowMessageWay the opc flow message way
     *
     * @return  the int.
     */
    Integer untied(OpcFlowMessageWay opcFlowMessageWay);

    /**
     * 查询消息推送方式列表
     *
     * @param id 消息模板Id
     *
     * @return  the message way vo
     */
    List<MessageWayVo> queryWayListById(Long id);
}
